package yl.hs.bmipfull.pojo.material;

import org.springframework.lang.Nullable;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

import java.math.BigDecimal;

/**
 * 作用:  仓库信息实体类<br/>
 * 创建时间: 2021年05月19日 11时02分59秒 <br/>
 *
 * @author 吴高丰
 */
@DBTable(disName = "仓库信息", mapCode = "warehouse")
public class WarehouseEntity extends BaseEntity {

    public String organizationCode;
    /**
     * 主键
     */
    @Nullable
    private Long id;
    /**
     * 编号
     */
    @DBField(disName = "仓库信息编号", mapCode = "sn", isSerialNumber = true, isRequire = true, snPrefix = "CCXI")
    private String sn;
    /**
     * 仓库名称
     */
    @DBField(disName = "仓库名称")
    private String whName;
    /**
     * 仓库名称拼音
     */
    private String whNamePY;
    /**
     * 最大容量
     */
    @DBField(disName = "最大容量")
    private BigDecimal maxQuantity;
    /**
     * 最小报警容量
     */
    @DBField(disName = "最小报警容量")
    private BigDecimal alertQuantity;
    /**
     * 当前原材编号
     */
    @DBField(disName = "当前物料编号")
    private String rmSN;
    /**
     * 当前库存量
     */
    @DBField(disName = "当前库存量")
    private BigDecimal inventory;
    /**
     * 仓库类型
     */
    @DBField(disName = "仓库类型")
    private Short whType;
    /**
     * 仓库用途
     */
    @DBField(disName = "仓库用途")
    private String whUseType;
    /**
     * 生产线编号
     */
    @DBField(disName = "生产线编号")
    private String plSN;
    /**
     * 状态
     */
    @DBField(disName = "状态")
    private Short state;
    @DBField(disName = "生产线名称")
    private String plName;
    private Short isRawMaterials;
    @DBField(disName = "站别")
    private String stand;

    public String getStand() {
        return stand;
    }

    public void setStand(String stand) {
        this.stand = stand;
    }

    public Short getIsRawMaterials() {
        return isRawMaterials;
    }

    public void setIsRawMaterials(Short isRawMaterials) {
        this.isRawMaterials = isRawMaterials;
    }

    public String getPlName() {
        return plName;
    }

    public void setPlName(String plName) {
        this.plName = plName;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return this.sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getWhName() {
        return this.whName;
    }

    public void setWhName(String whName) {
        this.whName = whName;
    }

    public String getWhNamePY() {
        return this.whNamePY;
    }

    public void setWhNamePY(String whNamePY) {
        this.whNamePY = whNamePY;
    }

    public BigDecimal getMaxQuantity() {
        return this.maxQuantity;
    }

    public void setMaxQuantity(BigDecimal maxQuantity) {
        this.maxQuantity = maxQuantity;
    }

    public BigDecimal getAlertQuantity() {
        return this.alertQuantity;
    }

    public void setAlertQuantity(BigDecimal alertQuantity) {
        this.alertQuantity = alertQuantity;
    }

    public String getRmSN() {
        return this.rmSN;
    }

    public void setRmSN(String rmSN) {
        this.rmSN = rmSN;
    }

    public BigDecimal getInventory() {
        if (this.inventory != null) {
            return this.inventory;
        }
        return new BigDecimal(0);
    }

    public void setInventory(BigDecimal inventory) {
        this.inventory = inventory;
    }

    public Short getWhType() {
        return this.whType;
    }

    public void setWhType(Short whType) {
        this.whType = whType;
    }

    public String getWhUseType() {
        return this.whUseType;
    }

    public void setWhUseType(String whUseType) {
        this.whUseType = whUseType;
    }

    public String getPlSN() {
        return this.plSN;
    }

    public void setPlSN(String plSN) {
        this.plSN = plSN;
    }

    public Short getState() {
        if (this.state == null) {
            return 0;
        }
        return this.state;
    }

    public void setState(Short state) {
        this.state = state;
    }

    public String getOrganizationCode() {
        return organizationCode;
    }

    public void setOrganizationCode(String organizationCode) {
        this.organizationCode = organizationCode;
    }


}